package com.zhousoft.blog.dao;

import org.freeocs.commons.db.QueryHelper;
import org.freeocs.commons.page.Page;

import com.zhousoft.blog.entity.Blogs;

public class BlogsDao {
	public static Page<Blogs> blogs(final int pageNo, final int pageSize, Object... prams) {
		Page<Blogs> page = new Page<Blogs>();
		page.setPageNo(pageNo);
		page.setPageSize(pageSize);
		return QueryHelper.query_slice(Blogs.class, "select * from freeocs_blogs order by blogid desc", page, prams);
	}
}
